<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCharTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('char', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('server_id')->default(0)->comment('player表id（账号信息）');
            $table->integer('character_guid')->default(0)->comment('魔兽世界characters表guid');
            $table->integer('spellPoint')->default(0)->comment('玩家角色剩余技能点');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('character');
    }
}
